package com.yunhe.Test;


import com.yunhe.javaBean.User;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    static ClassPathXmlApplicationContext cpac;

    static {
        cpac = new ClassPathXmlApplicationContext("applicationContext.xml");
    }

    @Test
    public  void u1(){
        Object u1 = (User)cpac.getBean("u1");
        System.out.println(u1);
    }
}
